package com.rj.bd.user.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.rj.bd.user.service.IUserService;

@Controller
@RequestMapping("/user")
@ResponseBody
public class UserController {

	@Autowired
	private IUserService userService;
	
	@RequestMapping("/login")
	public Map<String, Object>login(String name,String password){
		System.out.println("login");
		Map<String, Object> map = userService.login(name, password);
		return map;
	}
}
